package com.csdn.eval.spring.mqtt.config;

import com.csdn.eval.spring.mqtt.constants.ChannelName;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.integration.channel.DirectChannel;
import org.springframework.messaging.MessageChannel;

@Configuration
public class MqttMessageChannelConfiguration {

    @Bean(name = ChannelName.INBOUND)
    public MessageChannel publicInboundChannel() {
        return new DirectChannel();
    }

    @Bean(name = ChannelName.OUTBOUND)
    public MessageChannel publicOutboundChannel() {
        return new DirectChannel();
    }
}
